<template>
  <div class="w-full h-full center">
    <el-card class="loginForm center">
      <div
        class="w-full center mb-20"
        style="font-family: Arial, Helvetica, sans-serif; font-size: 30px"
      >
        <span>登 录</span>
      </div>
      <el-form :model="form">
        <el-form-item label="">
          <el-input placeholder="请输入账号" v-model="form.account"></el-input>
        </el-form-item>
        <el-form-item label="">
          <el-input placeholder="请输入密码" v-model="form.password"></el-input>
        </el-form-item>
        <el-form-item style="margin-bottom: 5px">
          <div class="w-full center">
            <el-button size="large" type="primary" style="font-size: 20px"
              >登 录</el-button
            >
          </div>
        </el-form-item>
      </el-form>
      <a @click="router.push({ path: '/register' })">
        <span style="font-size: 13px">去注册🏃‍♂️</span>
      </a>
    </el-card>
  </div>
</template>

<script lang="ts" setup>
import { reactive } from "vue";
import { useRouter } from "vue-router";

const router = useRouter();

const form = reactive({
  account: "",
  password: "",
});
</script>

<style lang="less" scoped>
.loginForm {
  width: 30%;
  height: 40%;
}
a {
  cursor: pointer;
}
.el-button {
  width: 100%;
}
.el-form {
  width: 300px;
}
.el-input {
  height: 40px;
}
</style>
